// 1. vue2 new Vue() -> vue3  createApp()
// 2. vue2 Vue.use(插件) -> vue3  createApp().use(插件)

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入全局初始化样式 less-loader less -> css 放入浏览器
import '@/style/common.less'

// 测试持久化插件是否生效
// 提交user mutation函数进行修改
// setTimeout(() => {
//   store.commit('user/setProfile', 10001)
// }, 3000)
// 注册所有的全局组件插件

import componentPlugin from '@/components'
import directivePlugin from '@/directives'

createApp(App).use(componentPlugin).use(directivePlugin).use(store).use(router).mount('#app')
